<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div style="color: pink;">
        第一个JavaScript程序
    </div>
    <div>不好</div>
    <script>
        var a="你好"
        let myName="xiaohua"
        const color="red"
        alert (myName)
        console.log(myName)
        b=111
        console.log(b)
        console.log(""+b)
        c="!!!"
        document.write(a)
        document.write("<div>"+c+"</div>")
        let content="<h3 style='color:"+color+"'>"+a+"</h3>"
        document.write(content)
        let result=10+10
        alert(result)
        function sayHello(){
            console.log("hello")
        }
        sayHello()
        function sayHi(a,b){
            console.log("hi"+a+b)
        }
        sayHi("a","b")
    </script>
</body>
</html>